package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ln
 * @since 2023-06-25
 */
@Data
@ApiModel(value = "外出申请实体类")
@EqualsAndHashCode(callSuper = false)
public class Wcshenqing implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("老人外键")
    private Integer lrId;
    @ApiModelProperty("陪同人姓名")
    private String ptname;
    @ApiModelProperty("陪同人电话")
    private String phone;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("外出时间")
    private Date wctime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("返回时间")
    private Date hftime;
    @ApiModelProperty("外出状态")
    private Integer wczhuangtai;
    @ApiModelProperty("陪同人类型")
    private String pttype;
    @ApiModelProperty("陪同人地址")
    private String ptaddress;
    @ApiModelProperty("外出原因")
    private String yuanyin;
    @ApiModelProperty("登记描述")
    private String miaoshu;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private Integer roomNo;
    @TableField(exist = false)
    private String bedNo;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    @TableField(exist = false)
    @ApiModelProperty("户口所在地")
    private String hukouLocation;
    @ApiModelProperty("联系方式")
    @TableField(exist = false)
    private String contact;
    @ApiModelProperty("身份证号")
    @TableField(exist = false)
    private String idNumber;
    @ApiModelProperty("图片")
    @TableField(exist = false)
    private String avatar;
    @ApiModelProperty("性别")
    @TableField(exist = false)
    private String gender;
    @TableField(exist = false)
    private String lcname;
    @TableField(exist = false)
    private Integer status;
    @TableField(exist = false)
    private String hname;
    @TableField(exist = false)
    private Integer djzhuangtai;
    @TableField(exist = false)
    private String yanqi;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date djtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime yjftime;
}
